﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using RPSImporter.Models;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace RPSImporter.Services.Data
{
   public class RPSDB : DbContext
   {
      public DbSet<City> City { get; set; }
      public DbSet<State> State { get; set; }
      public DbSet<Country> Country { get; set; }
      public DbSet<Province> Province { get; set; }
      public DbSet<Company> Company { get; set; }

      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
         modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
      }
   }
}